import { HomeService } from './../../http/home.service';
import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-home',
  templateUrl: './home.component.html',
  styleUrls: ['./home.component.less'],
})
export class HomeComponent implements OnInit {

  constructor(private HomeService:HomeService) { }
  public menu:Array<any> = [];
  ngOnInit() {
    this.HomeService.getMenu().subscribe(data=>{
      this.menu = data;
    })
  }

}
